package com.arron.algorithm.huawei;

import java.util.Scanner;

//华为机试 HJ1 字符串最后一个单词的长度
public class HJ1 {


    public static void main(String[] args) {


        Scanner scanner = new Scanner(System.in);

        String s = scanner.nextLine();

        String[] s1 = s.split(" ");


        System.out.println(s1[s1.length-1].length());

    }

}
